package com.itheima.mall.service.smsService;

import com.itheima.pojo.sms.SmsCouponHistory;
import com.itheima.mall.commons.PageBean;
import com.itheima.mall.commons.R;
import com.itheima.mall.service.smsService.SmsCouponHistoryApi;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class SmsCouponHistoryService {
    @DubboReference
    private SmsCouponHistoryApi smsCouponHistoryApi;
    //根据优惠卷id,使用状态,订单编号分页获取领取记录
    public R getList(Integer couponld, String orderSn, Integer pageNum, Integer pageSize, Integer useStatus) {
        PageBean<SmsCouponHistory>listCouponld =smsCouponHistoryApi.getList(couponld,orderSn,pageNum,pageSize,useStatus);
        return R.ok(listCouponld);
    }
}
